<%@ taglib prefix="s" uri="/struts-tags" %>
<%@taglib uri="ttp://www.security.com/tag" prefix="sc"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'password.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel='stylesheet' type='text/css' href='css/table.css'>
	<link rel="stylesheet" href="css/style.css">
	<link href="<%=path%>/template/css.css" rel="stylesheet" type="text/css">
	<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css">
	
	<script src='js/comm.js'></script>

  </head>
  

  <body>  
  <table width="100%" border='0' cellspacing='0' cellpadding='0' >
			<tr >
				<td width='90'><img src='images/loc-head.jpg' width='90' height='24'></td>
				<td valign='middle' nowrap background='images/loc-bg.jpg' class="title">我的密码修改</td>
				<td width='12'><img src='images/loc-tail.jpg' width='12' height='24'></td>
			</tr>
		</table><br>
  		<center>
  			<b><s:property value="message"/></b>
  		</center>
    	<s:form action="passwordEdit.action" name="inputform" cssClass="myform">
			<table border="0" width="100%"  class='ipttable'>
				
				<tr class="iptform">
					
						<s:password cssClass="input180"   required="*" value="oldpwd" name="oldpwd" label="旧密码"/>
					
				</tr>
				<tr >
					
						<s:password cssClass="input180" value="userPwd" name="userPwd" label="密码"/>
					
				</tr>
				<tr >
					
						<s:password cssClass="input180" value="userPwd" name="compwd" label="确认密码"/>
					
				</tr>
				<tr><td align="center" colspan="2"></td></tr>
				<tr><td align="center" colspan="2">
				  <input onclick="submitfrm();" class="submitbtn" type="button" value="提交" />
				  <input type="reset" value="重置" class="resetbtn">
			      </td></tr>
			</table>
		</s:form>
  </body>
</html>
<script type="text/javascript">
<!--
	function submitfrm(){
		if(confirm()){
			document.all.inputform.submit();
		}
	}
	
	function confirm(){
		var flg=true;
		
		if(''==document.all.oldpwd.value){
			alert('请输入旧密码！');
			flg=false;
		}
		if(document.all.userPwd.value!=document.all.compwd.value){
			alert('两次输入的新密码不一样！');
			flg=false;
		}
		
		return flg;
	}
//-->
</script>
